<p>
    <span style="font-size: 25px;"><strong>消息详细内容</strong></span>
    <a class="_a" href="javascript:" onclick="self.location=document.referrer;" style="float: right; color:darkviolet; "><strong>返回</strong></a>
</p>

<div data_id="<?php echo $data['id']?>" status_read="<?php echo $data['status_read']?>" id="message">
    <p class="lead">
        <?php echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.$data['message']?>
    </p>
</div>

<script type='text/javascript'>

    $(document).ready(function () {
        var status = $("#message").attr("status_read");
        if ( status == 2 ){
            return false;
        }
        var id = $("#message").attr("data_id");
        $.ajax({
            url: "/home/message/setRead",
            data: "id="+id,
            type: "POST",
            async: true,
            success: function (data) {
                if ( data == 'false') {
                    return false;
                }
            }
        });
    })
</script>
